/*
 * @Author: 灰灰
 * @Date: 2021-12-24 11:31:09
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-12-27 11:43:12
 */
const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,

  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,

  permission_routes: state => state.permission.routes,
  menuCodes: state => state.permission.menuCodes,
  permCodes: state => state.permission.permCodes,

  // errorLogs: state => state.errorLog.logs,

  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,

}
export default getters